{% extends 'base.html' %}
{% block title %}网络设备信息{% endblock %}
{% block content %}
<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header">网络设备信息</h3>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <ul class="nav nav-tabs">
                <li class="active"><a href="/assetmanage/network_table/">查看信息</a>
                </li>
                <li><a href="/assetmanage/network_add_html/">添加信息</a>
                </li>
                <li><a href="/assetmanage/network_update_html/">修改信息</a>
                </li>
                <li><a href="/assetmanage/network_del_html/">删除信息</a>
                </li>
            </ul>

            <div class="tab-content">
                <div class="tab-pane fade in active">
                    <div class="row">
                                <div class="panel-heading" style="background-color: white">
                                    <B class="fa fa-th"> 网络设备信息表</B>
                                </div>
                                <div class="panel-body">
                                    <div class="dataTable_wrapper">
                                    <pre style="background-color: white;line-height: 0px">
                                        <table class="table table-striped table-bordered table-hover" id="dataTables-example" style="margin-top:0px;margin-left:0px;margin-right:0px;margin-bottom:0px;">
                                            <thead>
                                                <tr>
                                                    <th>服务编号</th>
                                                    <th>设备信息</th>
                                                    <th>IP</th>
                                                    <th>数据中心</th>
                                                    <th>机房编号</th>
                                                    <th>机柜编号</th>
                                                    <th>资产编号</th>
                                                    <th>模块</th>
                                                    <th>可用接口</th>
                                                    <th>购买时间</th>
                                                    <th>过期时间</th>
                                                    <th>备注</th>
                                                    <th>管理</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {% for i in a %}
                                                <tr class="gradeA">
                                                    <td>{{ i.service_num }}</td>
                                                    <td>{{ i.type_info }}</td>
                                                    <td>{{ i.server_ip }}</td>
                                                    <td>{{ i.data_center }}</td>
                                                    <td>{{ i.room_num }}</td>
                                                    <td>{{ i.rack_num }}</td>
                                                    <td>{{ i.asset_num }}</td>
                                                    <td>{{ i.module }}</td>
                                                    <td>{{ i.available_intf }}</td>
                                                    <td>{{ i.buy_time }}</td>
                                                    <td>{{ i.expiration_time }}</td>
                                                    <td class="center">{{ i.note }}</td>
                                                    <td><a href="/assetmanage/network_update_arg_keep/?service_num={{ i.service_num }}"><button class="btn btn-warning btn-xs" type="button">更改</button></a> <a href="/assetmanage/network_del/?service_num={{ i.service_num }}"><button class="btn btn-danger btn-xs" type="button">删除</button></a></td>
                                                </tr>
                                            {% endfor %}
                                            </tbody>
                                        </table>
                                    </pre>
                                    </div>
                                </div>
                    </div>
                </div>
            </div>
    </div>
</div>
{% endblock %}